
package org.darcy.entity.sys;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Schema(description="SysArea: 行政区域")
@TableName(value = "cnarea_2023")
@Getter
@Setter
public class SysArea implements Serializable {

	private static final long serialVersionUID = 1L;

	@Schema(description = "主键id，无意义")
	@TableId
	private Integer id;

	@Schema(description = "级别(0-国家,1-省,2-市,3-区、县,4-乡、镇、街道,5-村、居委会)")
	@TableField(value = "`level`")
	private Integer level;

	@Schema(description = "父编码")
	@TableField(value = "`parent_code`")
	private String parentCode;

	@Schema(description = "行政区域编码")
	@TableField(value = "`area_code`")
	private String areaCode;

	@Schema(description = "邮政编码")
	@TableField(value = "`zip_code`")
	private String zipCode;

	@Schema(description = "城乡编码")
	@TableField(value = "`city_code`")
	private String cityCode;

	@Schema(description = "名称")
	@TableField(value = "`name`")
	private String name;

	@Schema(description = "简称")
	@TableField(value = "`short_name`")
	private String shortName;

	@Schema(description = "组合全称")
	@TableField(value = "`merger_name`")
	private String mergerName;

	@Schema(description = "拼音")
	@TableField(value = "`pinyin`")
	private String pinyin;

	@Schema(description = "经度")
	@TableField(value = "`lng`")
	private String lng;

	@Schema(description = "纬度")
	@TableField(value = "`lat`")
	private String lat;

	// 扩展属性

	@Schema(description = "查询关键字")
	@TableField(exist = false)
	private String keyword;

}
